REM === del filenametags, cscope* and tags ===
del /F /Q tags cscope* filenametags

REM === Generate file name tags ===
call genfiletags.bat

REM === Generate file related tags ===
ctags -R --sort=foldcase --c++-kinds=+p --fields=+iaS --extra=+q *

REM === Generate cscope related files ===
dir /s /b  *.c *.h *.asi *.asx *.asl *.dsc *.config *.env *.asm *.s *.a *.mac *.lst *.i *.m4 *.ac *.in *.am *make* *.mk *.mak *.dsp *.dxs *.inf *.uni *.inc *.vfr *.fdf *Protect* *GuidData* > cscope.files
cscope -Rb -i cscope.files

REM === All compltet ===
PAUSE